using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for Mess
/// </summary>
namespace MESS
{
    public class Mess
    {
        public static void ThrowMessenger(Label lbl, Image img, string mess, bool success)
        {
            lbl.Text = mess;
            img.Visible = true;
            if (success)
            {
                lbl.CssClass = "success";
                img.ImageUrl = "images/success.gif";
            }
            else
            {
                lbl.CssClass = "error";
                img.ImageUrl = "images/error.gif";
            }
        }
    }
}
